@extends('admin.layouts.app')
@section('css')
<link rel="stylesheet" href="{{ asset('assets/plugins/select2/css/select2.min.css') }}" />
<link rel="stylesheet" href="{{ asset('assets/plugins/bootstrap-tagsinput/css/bootstrap-tagsinput.css') }}" />
<link href="{{asset('assets/plugins/switchery/css/switchery.min.css')}}" rel="stylesheet" />
<link href="{{asset('assets/plugins/bootstrap-daterangepicker/daterangepicker.css')}}" rel="stylesheet">
<link href="{{asset('assets/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css')}}" rel="stylesheet">
@endsection
@section('content')
@include('vendor.ueditor.assets')
                        <!-- Page-Title -->
                        <div class="row">
                            <div class="col-sm-12">
                                <h4 class="page-title">平台管理</h4>
                                <ol class="breadcrumb">
                                    <li><a href="{{url('zadmin/')}}">系统</a></li>
                                    <li><a href="{{url('zadmin/products')}}">相册管理</a></li>
                                    <li class="active">修改相册</li>
                                </ol>
                            </div>
                        </div>
                        
                        <div class="row">
                        	<div class="col-lg-12">
                        		<div class="card-box">
                            <h2 class="m-t-0 header-title">修改相册</h2>
                            <hr/>
                             
                              @include('admin.common.error')
                        			<div class="row">
			                        	<div class="col-md-12">
                                  <form class="form-horizontal" role="form" action="{{url('zadmin/products/update')}}" method="post">
            
                          
                      <div class="form-group">
                        <label class="col-md-2 control-label">相册名</label>
                        <div class="col-md-10">
                          <input type="text" class="form-control" name="name" required="" value="{{$data->name}}" >
                        </div>

                       
                      </div>
                      <div class="form-group">
            <div class="form-group">
            <label class="col-md-2 control-label">时间</label>
            <div class="col-md-4">
              <input type="text" class="form-control" name="photoed_at"  value="{{$data->photoed_at}}" >
            </div>
             <label class="col-md-2 control-label">地点</label>
            <div class="col-md-4">
              <input type="text" class="form-control" name="address"  value="{{$data->address}}" >
            </div>
          </div>
         
           
          </div>
                                             

         

                   <div class="form-group">
              <label class="col-md-2 control-label">介绍</label>
              <div class="col-md-10">
               <!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('container');
    ue.ready(function() {
        ue.execCommand('serverparam', '_token', '{{ csrf_token() }}'); // 设置 CSRF token.
    });
</script>

<!-- 编辑器容器 -->
<script id="container" name="contents" type="text/plain">{!!$data->contents!!}</script>
              </div>
            </div> 
       
            
   



    
                                                        
                                            

                                           
                                              

                                              

                                              <div class="form-group text-center">
                                                  
                                                  <button type="submit" class="btn btn-info waves-effect waves-light">保存</button>
                                              </div>
                                              
                             <input name="id" value="{{$data->id}}" type="hidden" />                 
                             {{csrf_field()}}

                           
                            
                        </form>
                                </div>
			                        	
			                        </div>

                             
			                        
                        			
                        		</div>
                                
                            </div> <!-- end col -->

                            
                        </div>
@endsection
                        
                        
                        

                  
            
         
       

           



    
@section('js')
  <script type="text/javascript" src="/js/plupload.full.min.js"></script>
  <script src="{{ asset('assets/plugins/bootstrap-tagsinput/js/bootstrap-tagsinput.min.js') }}"></script>
  
    
  
  
  
  
        <script type="text/javascript">
        


      
</script>      
        @endsection
    
